$(document).ready(function() {

	$('input.datepicker').datepicker({ dateFormat: "yy-mm-dd" });
	
	$('input[data-pattern]').keyup(function() {
		var val = $(this).val();
		var pattern=new RegExp($(this).data('pattern'));
	
		//console.log('Test: ');
		//console.log(pattern.test(val));
		
	});
	
});

